﻿@model TT.Logic.Entities.Match
@{
    string readyToPlayCss = Model.IsReadyToPlay ? "ready-to-play" : string.Empty;    
}

<div class="match @readyToPlayCss" data-matchid="@Model.Id">
    
    <a href="javascript:void(0)" class="player a" data-ishome="true">
        <span class="name">@Model.GetHomeTitle()</span>
        <span class="score">@Model.HomeScore</span>
    </a>
    <a href="javascript:void(0)" class="player b" data-ishome="false">
        <span class="name">@Model.GetAwayTitle()</span>
        <span class="score">@Model.AwayScore</span>
    </a>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/main")
    <script src="/signalR/hubs" type="text/javascript"></script>
}
